Feature: 06. Let's test Sentry API
Before
Hook
When
the Manual Button is clicked
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[@class='ModesButton manual active'] (tried for 7 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_mode_is_active(WaitForElement.java:404) at ✽.the MANUAL is active(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/06.API.feature:14)
And
current system mode via API is "manual"
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[@class='ModesButton manual active'] (tried for 7 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_mode_is_active(WaitForElement.java:404) at ✽.the MANUAL is active(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/06.API.feature:19)
When
I set system mode via API to "collision-avoidance"
And
the "cy" on Secondary Map Circle is "higher"
Then
the COLLISION AVOIDANCE is active
And
current system mode via API is "collision-avoidance"
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[@class='ModesButton navigation active'] (tried for 7 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_mode_is_active(WaitForElement.java:404) at ✽.the COLLISION AVOIDANCE is active(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/06.API.feature:26)
When
I set system mode via API to "surveillance"
And
the "cy" on Secondary Map Circle is "lower"
Then
the SURVEILLANCE is active
And
current system mode via API is "surveillance"
Before
Hook
java.lang.AssertionError: System mode mismatch: expected 'surveillance' but got 'manual' at extern.bsb.tests.ui.when.APIOperations.checkSystemMode(APIOperations.java:58) at ✽.current system mode via API is "surveillance"(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/06.API.feature:33)
When
I set system mode via API to "target-tracking"
Then
current system mode via API is "target-tracking"
And
the MANUAL is active
Before
Hook
When
I set system mode via API to "manual"
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[@class='ModesButton manual active'] (tried for 7 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_mode_is_active(WaitForElement.java:404) at ✽.the MANUAL is active(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/06.API.feature:41)
And
current system mode via API is "manual"
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[@class='ModesButton manual active'] (tried for 7 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_mode_is_active(WaitForElement.java:404) at ✽.the MANUAL is active(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/06.API.feature:45)
When
the Primary Camera Rotation Button is clicked
Then
the Primary Camera Rotation Menu is visible
And
the Primary Camera Rotation 0 is clicked
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[@class='ModesButton manual active'] (tried for 7 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then_mode_is_active(WaitForElement.java:404) at ✽.the MANUAL is active(file:///media/PTJenkins/jenkins_home/jenkins/workspace/CI-CD_ShortTermSentry_2@2/short_term_sentry/shortTermSentry/06.API.feature:51)
Then
Detections are present in Websocket messages